import * as OrderListApi from '@/api/blind/orderList'
import { queryParams, loading, list, total } from './index.vue'

/** 查询列表 */
export const getList = async () => {
  queryParams.userId = user?.id
  loading.value = true
  try {
    const data = await OrderListApi.getOrderListPage(queryParams)

    list.value = data.list
    total.value = data.total
  } finally {
    loading.value = false
  }
}
